package com.android.hedgehog;

import com.android.hedgehog.framework.Game;
import com.android.hedgehog.framework.Screen;
import com.android.hedgehog.framework.Graphics;
import com.android.hedgehog.Assets;
import com.android.hedgehog.framework.Graphics.PixmapFormat;
import com.android.hedgehog.Settings;

public class LoadingScreen extends Screen {

	public LoadingScreen(Game game) {
		super(game);
	}

	@Override
	public void update(float deltaTime) {
		Graphics g = game.getGraphics();

		Assets.mainmenu = g.newPixmap("mainmenu.png", PixmapFormat.RGB565);
		Assets.blackbackground = g.newPixmap("blackbackground.png", PixmapFormat.RGB565);
		Assets.whitebackground = g.newPixmap("whitebackground.png", PixmapFormat.RGB565);
		Assets.lightyellowbackground = g.newPixmap("lightyellowbackground.png", PixmapFormat.RGB565);
		Assets.blackbutton = g.newPixmap("blackbutton.png", PixmapFormat.RGB565);
		Assets.whitearrowbuttons = g.newPixmap("whitearrowbuttons.png", PixmapFormat.ARGB4444);
		Assets.blackarrowbuttons = g.newPixmap("blackarrowbuttons.png", PixmapFormat.ARGB4444);
		Assets.emptybanner = g.newPixmap("emptybanner.png", PixmapFormat.ARGB4444);
		Assets.triplesumbanner = g.newPixmap("triplesumbanner.png", PixmapFormat.ARGB4444);
		Assets.samplegamebox = g.newPixmap("samplegamebox.png", PixmapFormat.RGB565);
		Assets.crazyboxesbanner = g.newPixmap("crazyboxesbanner.png", PixmapFormat.ARGB4444);
		Assets.black28fontdigits = g.newPixmap("black28fontdigits.png", PixmapFormat.ARGB4444);
		Assets.white28fontdigits = g.newPixmap("white28fontdigits.png", PixmapFormat.ARGB4444);
		Assets.recordbanners = g.newPixmap("recordbanners.png", PixmapFormat.ARGB4444);
		Assets.whitebuttons = g.newPixmap("whitebuttons.png", PixmapFormat.ARGB4444);
		Assets.blackbuttons = g.newPixmap("blackbuttons.png", PixmapFormat.ARGB4444);
		Assets.soundbuttons = g.newPixmap("soundbuttons.png", PixmapFormat.ARGB4444);
		Assets.numberinput = g.newPixmap("numberinput.png", PixmapFormat.ARGB4444);
		Assets.datamatrixbanner = g.newPixmap("datamatrixbanner.png", PixmapFormat.ARGB4444);
		Assets.racerbackgroud = g.newPixmap("racerbackground.png", PixmapFormat.RGB565);
		Assets.car = g.newPixmap("car.png", PixmapFormat.RGB565);
		Assets.board = g.newPixmap("seesaw.png", PixmapFormat.RGB565);
		Assets.blocks = g.newPixmap("blocks.png", PixmapFormat.ARGB4444);
		Assets.dummy = g.newPixmap("dummybot3.png", PixmapFormat.RGB565);
		Assets.dummy2 = g.newPixmap("dummybot4.png", PixmapFormat.ARGB4444);
		Assets.gameStand = g.newPixmap("gamestand.png", PixmapFormat.ARGB4444);
		Assets.buttons64 = g.newPixmap("buttons64x64.png", PixmapFormat.RGB565);
		Assets.buttons40 = g.newPixmap("buttons40x40.png", PixmapFormat.RGB565);
		Assets.puck = g.newPixmap("puck.png", PixmapFormat.RGB565);
		Assets.puck2 = g.newPixmap("puck2.png", PixmapFormat.RGB565);
		Assets.human = g.newPixmap("human.png", PixmapFormat.RGB565);
		Assets.cards = g.newPixmap("cardmatch.png", PixmapFormat.RGB565);
		Assets.wires = g.newPixmap("wires.png", PixmapFormat.RGB565);
		Assets.timebomb = g.newPixmap("timebomb.png", PixmapFormat.RGB565);
		Assets.wires2 = g.newPixmap("wires2.png", PixmapFormat.RGB565);
		Assets.bot0 = g.newPixmap("bot0.png", PixmapFormat.RGB565);
		Assets.botprofiles = g.newPixmap("botprofiles.png", PixmapFormat.RGB565);
		Assets.battlescreenbackground = g.newPixmap("background001.png", PixmapFormat.RGB565);
		Assets.bottest = g.newPixmap("bottest.png", PixmapFormat.RGB565);
		Assets.bot = g.newPixmap("bot.png", PixmapFormat.RGB565);

		// SOUNDS
		Assets.click = game.getAudio().newSound("battle025.ogg");
		Assets.eat = game.getAudio().newSound("eat.ogg");
		Assets.bitten = game.getAudio().newSound("bitten.ogg");

		// MEMORY
		Settings.load(game.getFileIO());
		game.setScreen(new MainMenu2(game));
	}

	@Override
	public void present(float deltaTime) {
	}

	@Override
	public void pause() {
	}

	@Override
	public void resume() {
	}

	@Override
	public void dispose() {
	}

}
